import random

rand=random.random()#0-1之间的小数
print(rand)

rand=random.randrange(1,10,2) #randrange(min,max,步长)
print(rand)

rand=random.randint(1,10)
print(rand)

l=[1,2,3,4,5]
rand=random.choice(l)
print(rand)

random.shuffle(l)
print(l) #[4, 1, 2, 3, 5]

